<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            position: relative;
            width: 250px;
            height: 250px;
            margin: 150px auto;
            transform-style: preserve-3d;
            transform: rotateX(20deg) rotateY(20deg);
            animation: box 8s infinite;
            animation-direction: alternate;
            perspective: 8000px;
            animation-delay: 2s;
            animation-timing-function: linear;
        }

        /* .box:hover{
            transform: rotateX(360deg) rotateY(360deg);
            transition: transform 6s;
        } */
        .box>div {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            text-align: center;
            line-height: 250px;
            font-size: 150px;
            /* opacity: 0.1; */
        }

        .left {
            background-color: red;
            transform: translateX(-125px) rotateY(90deg);
        }

        .right {
            background-color: aquamarine;
            transform: translateX(125px) rotateY(90deg);
        }

        .forword {
            background-image: url(./天猫图片/屏幕截图\ 2024-03-02\ 210646.png);
            transform: translateZ(125px);
        }

        .back {
            background-color: pink;
            transform: translateZ(-125px);
        }

        .top {
            background-color: green;
            transform: translateY(-125px) rotateX(90deg);
        }

        .down {
            background-color: blueviolet;
            transform: translateY(125px) rotateX(90deg);
        }

        @keyframes box {

            from {
                transform: rotateX(0deg) rotateY(0deg);
            }

            25% {
                transform: rotateX(90deg) rotateY(90deg);
            }

            50% {
                transform: rotateX(180deg) rotateY(180deg);

            }

            75% {
                transform: rotateX(270deg) rotateZ(0deg);
            }

            to {
                transform: rotateX(360deg) rotateZ(180deg);
            }
        }
    </style>
</head>

<body>
    <h1>404</h1>
    <div class="box">
        <div class="top"><img src="./天猫图片/404.jpg" alt="" style="width: 250px;height: 250px;"></div>
        <div class="down"><img src="./天猫图片/404.jpg" alt="" style="width: 250px;height: 250px;"></div>
        <div class="left"><img src="./天猫图片/404.jpg" alt="" style="width: 250px;height: 250px;"></div>
        <div class="right"><img src="./天猫图片/404.jpg" alt="" style="width: 250px;height: 250px;"></div>
        <div class="forword"><img src="./天猫图片/屏幕截图 2024-03-02 210646.png" alt="" style="width: 250px; height: 250px;;"></div>
        <div class="back"><img src="./天猫图片/404.jpg" alt="" style="width: 250px;height: 250px;"></div>
    </div>
</body>

</html>